#ifndef MYLINEEDIT_H
#define MYLINEEDIT_H

#include <QWidget>
#include <QLineEdit>
#include <QKeyEvent>

class MyLineEdit : public QLineEdit
{
    Q_OBJECT
public:
    explicit MyLineEdit(QWidget *parent = 0);
    
signals:
    void numpadKeyPressed(int num);
    void ctrlKeyComboPressed(QString key);

public slots:
    
private:
    void keyPressEvent(QKeyEvent *event);
    QStringList history;
    int upCounter;
    void updateCounter(bool increment);

};

#endif // MYLINEEDIT_H
